package com.yan.file;

import java.io.File;

public class FileDemo1 {
    public static void main(String[] args) {
        File file1 = new File("D:\\course\\02-javaSE进阶\\day03-常用类-3\\笔记\\第09章-java常用类.doc");
        System.out.println(file1.exists());
        File file2 = new File("D:/course/02-javaSE进阶/day03-常用类-3/笔记/第09章-java常用类.doc");
        System.out.println(file1.exists());
        File file3 = new File("\\course\\02-javaSE进阶\\day03-常用类-3\\笔记" , "第09章-java常用类.doc");
        System.out.println(file1.exists());
        File file4 = new File("D:\\course\\02-javaSE进阶\\day03-常用类-3\\笔记\\");
        File file5 = new File(file4, "第09章-java常用类.doc");
        System.out.println(file5.exists());
    }
}
